package com.sunducation.co.dcw;

/**
 * @description: 演示有问题代码：不要通过实例方法给静态变量赋值。
 * @author:chenwenbiao
 * @createTime:2019/7/10 16:34
 * @version：1.0
 **/
public class OssUtil {

    /**
     * 访问地址
     */
    public static final String accessUrl = "http://xxx.xxx.com/";

    /**
     * bucket名称
     */
    public static String bucketName;

    /**
     * 文件上传地址
     */
    public static String endpoint;

    /**
     * accessKeyId 阿里云连接key
     */
    public static String accessKeyId;


    public void setBucketName(String bucketName) {
        OssUtil.bucketName = bucketName;
    }

    public void setEndpoint(String endpoint) {
        OssUtil.endpoint = endpoint;
    }

    public void setAccessKeyId(String accessKeyId) {
        OssUtil.accessKeyId = accessKeyId;
    }
}